class Weather():
    tablename = 'weather'
    attrs = ['cityId', 'date', 'updateTime', 'publishTime', 'temperature', 'windPower', 'windDirection', 'windPowerNum',
             'site',
             'humidity', 'weather', 'precipitationType', 'windDirectionNum', 'precipitation', 'weatherDay',
             'weatherNight',
             'windDirectionDay', 'windPowerDay', 'windDirectionNight', 'windPowerNight', 'temperatureNight',
             'temperatureDay']
    fields = ['city_id', 'date', 'update_time', 'publish_time', 'temperature', 'wind_power', 'wind_direction',
              'wind_power_num', 'site',
              'humidity', 'weather', 'precipitation_type', 'wind_direction_num', 'precipitation', 'weather_day',
              'weather_night',
              'wind_direction_day', 'wind_power_day', 'wind_direction_night', 'wind_power_night', 'temperature_night',
              'temperature_day']

    def gettablename(self):
        return self.tablename

    def getattrs(self):
        return self.attrs

    def getfields(self):
        return self.fields


class PsPm25():
    tablename = 'ps_pm25'
    attrs = ['cityId', 'date', 'psPm25', 'level', 'levelNum']
    fields = ['city_id', 'date', 'ps_pm25', 'level', 'level_num']

    def gettablename(self):
        return self.tablename

    def getattrs(self):
        return self.attrs

    def getfields(self):
        return self.fields
